<template>
  <div
    class="button"
    :class="color+' '+size"
    :style="'top:'+top+'rpx;'+'left:'+left+'rpx'"
    @touchstart="$emit('touchstart')"
    @touchend="$emit('touchend')"
  >
    <i :class="{'active':active}" />
    <em v-show="size==='s1'" :style="'transform:'+arrow+' scale(1,2)'" />
    <span :class="position?'position':''">
      {{ label }}
    </span>
  </div>
</template>
<script src="./index.js">
</script>

<style lang="less">
@import './index.less';
</style>
